package com.link.base.wechat.wxmessage.model;

import com.link.core.basic.model.BasicModel;

import java.util.List;

/**
 * 微信公众号消息对象
 *
 * @author lujiang
 * @updateDate 2019/02/26 15:00
 */
public class WxMessage extends BasicModel {
    /**
     * 开发者微信号
     */
    private String toUserName;
    /**
     * 发送方账号(OpenID)
     */
    private String fromUserName;
    /**
     * 消息创建时间(整型)
     */
    private String createTime;
    /**
     * 消息类型
     */
    private String msgType;
    /**
     * 消息ID(64位整型)
     */
    private Long msgId;
    /**
     * 消息内容
     */
    private String contents;
    /**
     * 回复消息
     */
    private String replyContents;
    /**
     * 其他消息类型字段（非必输）  标题
     */
    private String title;
    /**
     * 小程序appid
     */
    private String appid;

    /**
     * 小程序的页面路径
     */
    private String pagepath;

    /**
     * 缩略图/小程序卡片图片的媒体ID，小程序卡片图片建议大小为520*416
     */
    private String thumbMediaId;
    /**
     * 图文消息/视频消息/音乐消息的描述
     */
    private String description;
    /**
     * 音乐链接
     */
    private String musicurl;
    /**
     * 高品质音乐链接，wifi环境优先使用该链接播放音乐
     */
    private String hqmusicurl;
    /**
     * 图文消息被点击后跳转的链接
     */
    private String url;
    /**
     * 图文消息的图片链接，支持JPG、PNG格式，较好的效果为大图640*320，小图80*80
     */
    private String picurl;
    /**
     * 菜单消息头部提示语
     */
    private String headContent;
    /**
     * 菜单消息尾部提示语
     */
    private String tailContent;
    /**
     * 菜单消息集合
     */
    private List<MsgMenu> list;
    /**
     * 群发时用 openid集合
     */
    private List<String> openIds;

    public List<String> getOpenIds() {
        return openIds;
    }

    public void setOpenIds(List<String> openIds) {
        this.openIds = openIds;
    }

    public String getHeadContent() {
        return headContent;
    }

    public void setHeadContent(String headContent) {
        this.headContent = headContent;
    }

    public String getTailContent() {
        return tailContent;
    }

    public void setTailContent(String tailContent) {
        this.tailContent = tailContent;
    }

    public List<MsgMenu> getList() {
        return list;
    }

    public void setList(List<MsgMenu> list) {
        this.list = list;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPagepath() {
        return pagepath;
    }

    public void setPagepath(String pagepath) {
        this.pagepath = pagepath;
    }

    public String getThumbMediaId() {
        return thumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        this.thumbMediaId = thumbMediaId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getMusicurl() {
        return musicurl;
    }

    public void setMusicurl(String musicurl) {
        this.musicurl = musicurl;
    }

    public String getHqmusicurl() {
        return hqmusicurl;
    }

    public void setHqmusicurl(String hqmusicurl) {
        this.hqmusicurl = hqmusicurl;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getReplyContents() {
        return replyContents;
    }

    public void setReplyContents(String replyContents) {
        this.replyContents = replyContents;
    }

    @Override
    public String toString() {
        return "WxMessage [toUserName=" + toUserName + ", fromUserName=" + fromUserName + ", createTime=" + createTime
                + ", msgType=" + msgType + ", msgId=" + msgId + ", contents=" + contents + ", replyContents="
                + replyContents + "]";
    }

    public Long getMsgId() {
        return msgId;
    }

    public void setMsgId(Long msgId) {
        this.msgId = msgId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }
}
